{% extends 'base.html' %}
 
{% block body %}
    <div id="container" class="cls-container">
         
        <!-- BACKGROUND IMAGE -->
        <!--===================================================-->
        <div id="bg-overlay" class="bg-img img-balloon"></div>
         
         
        <!-- HEADER -->

         
         
        <!-- LOGIN FORM -->
        <!--===================================================-->
        <div class="cls-content">
            <div class="cls-content-sm panel">
                <div class="panel-body">
                    <p class="pad-btm text-center">Sign In to your account</p>
                    <form method="post">{% csrf_token %}
                        <div class="form-group">
                            <div class="input-group">
                                <div class="input-group-addon"><i class="fa fa-user"></i></div>
                                <input type="text" name="username" class="form-control" placeholder="Username">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="input-group">
                                <div class="input-group-addon"><i class="fa fa-asterisk"></i></div>
                                <input type="password" name="password" class="form-control" placeholder="Password">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="input-group">
                                <div class="input-group-addon">
                                    <img height="30px" src="/static/verify_code_imgs/{{ today_str }}/{{ filename }}.png">
                                </div>
                                <input style="height: 50px" type="text" name="verify_code" class="form-control" placeholder="验证码">
                                <input  type="hidden" name="verify_code_key" value="{{ filename }}" >
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-8 text-left checkbox">
                                <label class="form-checkbox form-icon">
                                <input type="checkbox" > Remember me
                                </label>
                            </div>
                            <div class="col-xs-4">
                                <div class="form-group text-right">
                                <button class="btn btn-success text-uppercase" type="submit">Sign In</button>
                                </div>
                            </div>
                        </div>
                        {% if error %}
                            <span style="color: red">{{ error.error }}</span>
                        {% endif %}
 
                    </form>
                </div>
            </div>

        </div>
        <!--===================================================-->
         
 
         
    </div>
    <!--===================================================-->
    <!-- END OF CONTAINER -->
{% endblock %}